package com.zxjbyte.yiyi.module.plugin.job.service;


import com.zxjbyte.yiyi.framework.common.domain.api.PageResult;
import com.zxjbyte.yiyi.framework.mybatis.service.BaseServiceX;
import com.zxjbyte.yiyi.module.plugin.job.domain.entity.QuartzJobPO;
import com.zxjbyte.yiyi.module.plugin.job.domain.request.QJobAddRequest;
import com.zxjbyte.yiyi.module.plugin.job.domain.request.QJobPageRequest;
import com.zxjbyte.yiyi.module.plugin.job.domain.request.QJobUpdateRequest;
import com.zxjbyte.yiyi.module.plugin.job.domain.response.QJobPageResponse;

/**
 * @Author zhangxingjia
 * @Date 2023/8/23 17:35
 * @Version: 1.0
 */
public interface IQuartzJobService extends BaseServiceX<QuartzJobPO> {

    void add(QJobAddRequest addRequest);

    PageResult<QJobPageResponse> page(QJobPageRequest pageRequest);

    void updateJob(QJobUpdateRequest updateRequest);

    void delete(String name, String group);

    void pauseJob(String name, String group);

    void resumeJob(String name, String group);
}
